<textarea class="layui-textarea" id="LAY_demo1" style="display: none">
  把编辑器的初始内容放在这textarea即可
</textarea>
<script>
    layui.use('layedit', function(){
        var layedit = layui.layedit
            ,$ = layui.jquery;
        //构建一个默认的编辑器
        var textarea1 = layedit.build('LAY_demo1',{
            uploadImage:{url: '/up/image?token=<?=TOKEN?>?path=other', type: 'post'}
        });
    });
</script>